<template>
  <div class="back-top"></div>
</template>

<script>
export default {
  name: "backtop",
  // methods: {
  //   backtop() {
  //     document.documentElement.scrollTop = document.body.scrollTop = 0;
  //   }
  // }
};
</script>

<style scoped>
.back-top {
  width: 40px;
  height: 40px;
  font-size: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px 0 0 3px;
  z-index: 101;
  background-repeat: no-repeat;
  background-position: 50%;
  background-image: url("../../../public/images/backtop.png");
  background-size: 25px;
}
</style>